package com.tsing.cedap.common.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Accessors(chain = true)
public class BasePageVo {

    @ApiModelProperty("必填：页码")
    @NotNull(message = "页码不能为空")
    @DecimalMin(value = "1", message = "页码不能小于1")
    private Integer pageNum;

    @ApiModelProperty("必填：每页展示数据")
    @NotNull(message = "每页展示数据不能为空")
    @DecimalMin(value = "1", message = "每页展示数据不能小于1")
    private Integer pageSize;
}
